package com.miaoan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 医生和科目表，擅长的科目
 * @TableName doctor_subject
 */
@TableName(value ="doctor_subject")
@Data
public class DoctorSubject implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long doctorSubjectId;

    /**
     * 擅长科目
     */
    private Long doctorId;

    /**
     * 擅长科目
     */
    private Long subjectId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}